import java.io.BufferedReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.Principal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

import javax.servlet.AsyncContext;
import javax.servlet.DispatcherType;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Part;

import util.IPUtils;
import util.TimeUtils;



public class Test {


	public static void main(String[] args) throws ParseException {
		// TODO 自动生成的方法存根
		// 当时时间
		Date now = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String hehe = dateFormat.format( now );
		System.out.println("时间："+hehe);
		// 2017/06/19 09:10:08
		// 2017/06/19 09:12:21
		TimeUtils tu = new TimeUtils();
		String s = tu.getMinute("2017-06-19 09:10:08", (String)tu.getCurrTime());
		System.out.println(s);
		
	}

}
